package com.ruoyi.test.base;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;

public class BaseTest {

    protected ObjectMapper objectMapper = new ObjectMapper();

    protected void print(Object obj) {
        System.out.println("======================");
        if (obj == null) {
            System.out.println("obj is null");
        }
        try {
            System.out.println(objectMapper.writeValueAsString(obj));
        } catch (JsonProcessingException e) {
            e.printStackTrace();
        }
    }
}
